﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Twinkle.Tweak
{
    public class InternalStorage
    {
        private Dictionary<string, TUser> userStorage;

        public TUser LookupUser(string id)
        {
            if (userStorage.ContainsKey(id))
                return userStorage[id];
            else
                return null;
        }

        public void AddUser(TUser user)
        {
            if (userStorage.ContainsKey(user.Id))
                userStorage[user.Id] = user;
            else
                userStorage.Add(user.Id, user);
        }
    }
}
